import Vue from 'vue';
import App from '@/App.vue';
import axios from 'axios';
import ElementUI from 'element-ui';
import router from '@/assets/js/router/router.js';
import * as filters from '@/assets/js/filter.js';
import index from '@/assets/js/index.js';
import defaultParam from '@/assets/js/defalut.js';
import $ from 'jquery';
import store from '@/assets/js/store/store.js';
// 低版本浏览器兼容处理
import 'babel-polyfill';
// 样式的引入
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/css/iconfont.css';
import '@/assets/css/index.less';

Vue.config.devtools = false;
Vue.config.productionTip = false;
// 组件、定义方法的使用
Vue.use(ElementUI, {size: 'small'});
Vue.use(index);
// 参数挂载
Vue.prototype.$ = $;
Vue.prototype.$axios = axios;
Vue.prototype.$my = defaultParam;
// filter导入
Object.keys(filters.default).forEach(key => {
    Vue.filter(key, filters.default[key])
})

// 对象初始化
const AppModel = new Vue({
    router,
    store,
    render: (h) => h(App)
}).$mount("#app");